
#ifndef _M_DEV_LED_H_
#define _M_DEV_LED_H_

#include <stm32f10x.h>

/*
  system state led pin    --> PB0 
  signal strength led pin --> PB1
*/
#define LED_APB_CLOCK         RCC_APB2Periph_GPIOB

#define	LED_SIGNAL_PIN		    GPIO_Pin_1
#define	LED_SIGNAL_PIN_BASE	  GPIOB

#define	LED_SYS_STAT_PIN		  GPIO_Pin_0
#define	LED_SYS_STAT_PIN_BASE	GPIOB

#define LED_ON  1
#define LED_OFF 0

enum LED_LIST{
  SYS_STAT_LED = 0,
  SIGNAL_LED = 1,
  
};

void led_dev_init(void);
void led_set(unsigned char ucLed, unsigned char ucStat);

#endif


